<?php
/*
 * @Author: 柳天鹏 
 * @Date: 2020-01-15 10:49:04 
 * @Last Modified by: song0229liu
 * @Last Modified time: 2020-01-15 10:53:09
 */
namespace kbitAdmin\tools;

/**
 * 数据验证类
 */
class FilterData
{

    public static function is_mobile_phone(string $mobile_phone = '') : bool
    {
        $chars = "/^1[3,4,5,7,6,8,9]{1}[0-9]{1}[0-9]{8}$/";
        if(preg_match($chars, $mobile_phone))
        {
            return true;
        }
        return false;
    }

}